package com.androwit.engine.mapping.converter.str;

import com.androwit.engine.mapping.Converter;

public class NoConverter implements Converter<String, String> {

	protected static NoConverter instance;

	@Override
	public String fromConverted(String value) throws Exception {
		return value;
	}

	@Override
	public String convert(String value) throws Exception {
		return value == null ? "" : value;
	}

	public static NoConverter getInstance() {
		if (instance == null)
			instance = new NoConverter();
		return instance;
	}

}
